
public class Nod {
	public int x;
	public Nod fs;
	public Nod fd;
	
	public Nod(int x, Nod fs, Nod fd) {
		super();
		this.x = x;
		this.fs = fs;
		this.fd = fd;
	}
	
	public int getX() {
		return x;
	}
	
	public void setX(int x) {
		this.x = x;
	}

	public Nod getFs() {
		return fs;
	}

	public void setFs(Nod fs) {
		this.fs = fs;
	}

	public Nod getFd() {
		return fd;
	}

	public void setFd(Nod fd) {
		this.fd = fd;
	}

	public String toString() {
		return "Nod [x=" + x + "]";
	}
	
	public void accept(Parcurgere p){
		p.parcurgere();
	}
	

}

